package helper

import "time"

const (
	APP_USER_SESSION = "app:session:"
	APP_USER_TOKENS  = "app:token:"
)

const (
	EXPIRE_USER_SESSION = 7 * 24 * time.Hour
)

// 价格类型，原价，与打折价格
const (
	PRICE_ORIGIN   = 1
	PRICE_DISCOUNT = 2
)

const (
	//  1下单，2无效，4支付成功 8 已发货 16 退货
	ORDER_STATE_SURE     = 1
	ORDER_STATE_NON      = 2
	ORDER_STATE_PAY      = 4
	ORDER_STATE_DELIVERY = 8
	ORDER_STATE_CANCEL   = 16

	ORDER_FINISH_ING   = 1 //进行中
	ORDER_FINISH_CLOSE = 2 // 已关闭
	ORDER_FINISH_OVER  = 3 // 已完成
)

const (
	GROUNDING_AT_0 = 0 // 下线
	GROUNDING_AT_1 = 1 //  上线
	GROUNDING_AT_2 = 2 // 系统内部货物
)

const (
	BENFIT_SCOPE_PATH = "url_path"
)

// 充值类型
const (
	RECGARGE_OF_ORDER = "order"
)

const UNSAFE_MOD = "unsafe"
